|
|
|
|
|
|
|
Figure 1.24
Example program Fills demonstrates the FillStyle property. |
|
|
|
|
|
|
|
|
Example program Styles, shown in Figure 1.25, lets you experiment with different graphic properties. Enter a value for DrawWidth and use the option buttons to select the type of object to draw: DrawStyle, FillStyle, FillColor, and ForeColor. Then click and drag to create objects using the properties you selected. |
|
|
|
|
|
|
|
|
ClipControls is an important but confusing property of forms, picture boxes, and frames. When ClipControls is true and a form receives a Paint event, Visual Basic creates a clipping region around any non-graphic controls on the form. Any graphics you draw on the form within the clipping region are ignored, so those controls are not covered by your graphics. |
|
|
|
|
|
|
|
|
Figure 1.25
Example program Styles demonstrates the FillStyle property. |
|
|
|
|
|